home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
Extension Shell 1.5
/
Sample Extensions (1.5)
/
MacCough ƒ
/
MC AddrsTable.h
< prev
next >
Wrap
Text File
|
1996-04-12
|
2KB
|
43 lines
/* NAME:
MC AddrsTable.h
WRITTEN BY:
Dair Grant
DESCRIPTION:
Header file for MC AddrsTable.c, containing the definition of our
Address Table.
___________________________________________________________________________
*/
#ifndef __MC_ADDRSTABLE__
#define __MC_ADDRSTABLE__
//=============================================================================
// Structures
//-----------------------------------------------------------------------------
// The default address table has a "magic" value used to allow a Control
// Panel (for example) to make sure that it gets back what it expects when
// it asks Gestalt for the address table address. Recommended values of
// "magic" include any four letter character constant *other* than the
// Gestal selector which returns the address table address. The "version"
// value can be used for a similar sanity checking purpose. It allows
// changes in the format of the address table to be detected by all
// versions of a cdev/INIT pair. If a mismatch between expected and actual
// table versions occurs, appropriate action can be taken. Following these
// two fields an array of ProcPtrs.
//
// To extend the address table, add fields after theTable.
//-----------------------------------------------------------------------------
#pragma options align=mac68k
typedef struct {
long magicNumber;
long versionNumber;
ProcPtr theTable[2]; // We use entry 1
Handle theSound; // The noise to play
} MCAddressTable;
#pragma options align=reset
#endif